package org.me.marble;

/**
 *
 * @author tungi
 */

public class TextureLibrary{
    //it follow the sequance of the gameObject enum
    private static String[] ids={"marble","wood","pointobject","lifeobject",
                                 "fastmarkobject","gate","slowmarkobject",
                                 "questionmarkobject","invertmarkobject","box","point2"};

    public static int getTextureID(int id){
        if(ids[id].equals("gate"))
            return GameActivity.game.getResources().getIdentifier("texture_"+ids[id],
                "drawable",GameActivity.game.getPackageName());
        else
            return GameActivity.game.getResources().getIdentifier(
                    "texture_"+ids[id]+"_"+OptionsLibrary.texture_quality,
                    "drawable",GameActivity.game.getPackageName());
    }
}
